<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">  
        <title>注册页面</title> 
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/css/bootstrap.min.css">
        <script type="text/javascript" src="__PUBLIC__/static/js/jquery-3.2.1.min.js"></script>
        <script type="text/javascript"> var url = 'http://ltp.sodevel.com/pdp21cake/public/';</script>
        <script type="text/javascript" src="__PUBLIC__/static/js/register.js"></script>
    </head>
    <body>
        <div class="container">
            <div class="row" style="margin-top: 100px;">
                <div class="col-md-3"></div>
                <div class="col-md-6">
                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            <h3 class="panel-title">欢迎注册！</h3>
                        </div>
                        <div class="panel-body">
                            <form class="form-horizontal" action="<?php echo url('index/Register/save')?>" method="post" id="r_form">
                                <!--用户名start-->
                                <div class="form-group">
                                    <label for="inputEmail3" class="col-sm-2 control-label">昵称</label>
                                    <div class="col-sm-10">
                                        <input type="text" name="r_user" class="form-control" id="r_user" placeholder="请输入用户昵称">
                                        <span id="r_user_prompt"></span>
                                    </div>
                                </div>
                                <!--用户名end-->
                                <!--邮箱start-->
                                <div class="form-group">
                                    <label for="inputEmail3" class="col-sm-2 control-label">邮箱</label>
                                    <div class="col-sm-10">
                                        <input type="text" name="r_email" class="form-control" id="r_email" placeholder="请填写邮箱地址">
                                        <span id="r_email_prompt"></span>                                       
                                    </div>
                                </div>  
                                <!--用户名end-->
                                <!--手机号码start-->                                            
                                <div class="form-group">
                                    <label for="inputEmail3" class="col-sm-2 control-label">手机号码</label>
                                    <div class="col-sm-10">
                                        <input type="tel" name="r_tel" class="form-control" id="r_tel" placeholder="请输入手机号码">
                                        <span id="r_tel_prompt"></span>                             
                                    </div>
                                </div>
                                <!--手机号码end-->
                                <!--验证码start-->
                                <div class="form-group">
                                    <label for="inputEmail3" class="col-sm-2 control-label">验证码</label>
                                    <div class="col-sm-6">
                                        <input type="text" name="r_code" class="form-control" id="r_code" placeholder="请输入验证码">
                                        <span id="r_code_prompt"></span>                               
                                    </div>
                                    <input class="btn btn-primary" id="r_code_button" type="button" value="获取验证码">
                                </div>
                                <!--验证码end-->
                                <!--图像验证码start-->   
                                <div class="form-group">
                                    <label for="inputEmail3" class="col-sm-2 control-label"></label>
                                    <div class="col-sm-6">
                                        <input type="text" name="r_captcha" class="form-control" id="r_captcha" placeholder="请输入图像验证码">
                                        <span id="r_captcha_prompt"></span>                             
                                    </div>
                                    <img src="{:url('index/Register/captcha')}" alt="captcha" id="r_captcha_img">
                                </div>  
                                <!--图像验证码end-->
                                <!--密码start-->                                                          
                                <div class="form-group">
                                    <label for="inputEmail3" class="col-sm-2 control-label">密码</label>
                                    <div class="col-sm-10">
                                        <input type="password" name="r_pwd_one" class="form-control" id="r_pwd_one" placeholder="请输入密码">
                                        <span id="r_pwd_one_prompt"></span>                             
                                    </div>
                                </div>
                                <!--密码end-->    
                                <!--确认密码start-->
                                <div class="form-group">
                                    <label for="inputEmail3" class="col-sm-2 control-label">确认密码</label>
                                    <div class="col-sm-10">
                                        <input type="password" name="r_pwd_two" class="form-control" id="r_pwd_two" placeholder="请再次输入密码">
                                        <span id="r_pwd_two_prompt"></span>                             
                                    </div>
                                </div>  
                                <!--确认密码end-->  
                                <!--注册登录按钮start-->                                  
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button type="submit" name="r_button" value="r_button" class="btn btn-primary">注册</button>
                                        <a class="btn btn-primary" href="<?php echo url('index/login/index')?>" role="button">登录</a>
                                    </div>
                                </div>
                                <!--注册登录按钮end-->
                            </form> 
                        </div>
                        <div class="panel-footer text-right text-muted">版权归本人所有 盗者必究</div>
                    </div>                          
                </div>
                <div class="col-md-3"></div>
            </div>      
        </div>
    </body>
</html>